package edu.hawaii.webspider;

/**
 * A basic webpage object used by the WebSpider class.  Provides storage for the 
 * information about each page/link that has been traversed.
 * @author Ben
 *
 */
public class WebSpiderPage {
  /**
   * Contains the url of the page.
   */
  public String url;
  
  /**
   * True if the page has been searched, otherwise false.
   */
  public boolean searched;
  
  /**
   * Number of other pages that have linked to it.
   */
  public int hits;
    
  /**
   * Constructor for a single webpage.  Only necessary information is the URL, number 
   * of hits (other links to it), and weather it has been searched by the WebSpider.
   * @param startUrl initial URL of the page.
   */
  public WebSpiderPage(String startUrl) {
    url = startUrl;
    hits = 0;
    searched = false;
  }
}